import { Reducer, AnyAction } from "redux";

const doIt: Reducer = (state: string = "初始值为空", action: AnyAction) => {
	switch (action.type) {
		case "DO_IT":
			return `let's do it ${action.text}`;
		default:
			return state;
	}
};

export default doIt;
